<template>
  <div style="padding: 10px;">
    {{ userInfo }}
  </div>
</template>

<script>
export default {
  props: {
    userInfo: Object
  },
  watch: {
    userInfo: {
      immediate: true,
      handler () {
        console.log(123)
      }
    }
  }
}
</script>